<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>搜索 - 外卖APP</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.0/font/bootstrap-icons.css">
    <style>
        :root {
            --primary-color: #2563eb;
            --secondary-color: #3b82f6;
            --accent-color: #f59e0b;
            --text-primary: #1f2937;
            --text-secondary: #4b5563;
            --background-light: #f8fafc;
        }

        body {
            margin: 0;
            padding: 0;
            background: var(--background-light);
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
        }

        .phone-container {
            width: 390px;
            height: 844px;
            margin: 20px auto;
            background: white;
            position: relative;
            overflow: hidden;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
            border-radius: 40px;
        }

        .content {
            height: 100%;
            overflow-y: auto;
            background: white;
        }

        .content::-webkit-scrollbar {
            width: 0;
        }

        .search-header {
            padding: 15px;
            background: white;
            position: sticky;
            top: 0;
            z-index: 100;
            display: flex;
            gap: 10px;
            align-items: center;
            border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        }

        .back-button {
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-primary);
            text-decoration: none;
        }

        .search-bar {
            flex: 1;
            display: flex;
            align-items: center;
            background: var(--background-light);
            border-radius: 16px;
            padding: 8px 15px;
            gap: 10px;
        }

        .search-bar i {
            color: var(--text-secondary);
        }

        .search-input {
            border: none;
            outline: none;
            background: transparent;
            flex: 1;
            font-size: 14px;
        }

        .search-button {
            border: none;
            background: none;
            color: var(--primary-color);
            font-size: 14px;
            font-weight: 500;
        }

        .search-suggestions {
            padding: 15px;
        }

        .suggestion-title {
            font-size: 14px;
            color: var(--text-secondary);
            margin-bottom: 10px;
        }

        .suggestion-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
        }

        .suggestion-tag {
            padding: 6px 12px;
            background: var(--background-light);
            border-radius: 16px;
            font-size: 13px;
            color: var(--text-primary);
            text-decoration: none;
        }

        .search-results {
            padding: 15px;
        }

        .result-item {
            display: flex;
            padding: 15px;
            border-bottom: 1px solid rgba(0, 0, 0, 0.05);
            text-decoration: none;
            color: inherit;
        }

        .result-img {
            width: 60px;
            height: 60px;
            border-radius: 8px;
            object-fit: cover;
            margin-right: 15px;
        }

        .result-info {
            flex: 1;
        }

        .result-name {
            font-size: 15px;
            font-weight: 500;
            color: var(--text-primary);
            margin-bottom: 5px;
        }

        .result-highlight {
            color: var(--primary-color);
        }

        .result-meta {
            font-size: 12px;
            color: var(--text-secondary);
            display: flex;
            gap: 10px;
        }

        .no-results {
            padding: 40px 20px;
            text-align: center;
            color: var(--text-secondary);
        }

        .no-results i {
            font-size: 48px;
            margin-bottom: 10px;
            opacity: 0.5;
        }

        .no-results p {
            margin: 0;
            font-size: 14px;
        }
    </style>
</head>
<body>
    <div class="phone-container">
        <div class="content">
            <div class="search-header">
                <a href="index.html" class="back-button">
                    <i class="bi bi-chevron-left"></i>
                </a>
                <div class="search-bar">
                    <i class="bi bi-search"></i>
                    <input type="text" class="search-input" placeholder="搜索商家、美食" value="川菜">
                </div>
                <button class="search-button">搜索</button>
            </div>

            <div class="search-results">
                <a href="restaurant-detail.html" class="result-item">
                    <img src="https://images.unsplash.com/photo-1571091718767-18b5b1457add?w=120&h=120&auto=format&fit=crop" alt="川味小馆" class="result-img">
                    <div class="result-info">
                        <div class="result-name"><span class="result-highlight">川</span>味小馆</div>
                        <div class="result-meta">
                            <span>评分 4.8</span>
                            <span>月售 2000+</span>
                            <span>35分钟</span>
                        </div>
                    </div>
                </a>

                <a href="#" class="result-item">
                    <img src="https://images.unsplash.com/photo-1555126634-323283e090fa?w=120&h=120&auto=format&fit=crop" alt="蜀香园" class="result-img">
                    <div class="result-info">
                        <div class="result-name">蜀香园</div>
                        <div class="result-meta">
                            <span>评分 4.6</span>
                            <span>月售 1500+</span>
                            <span>40分钟</span>
                        </div>
                    </div>
                </a>

                <a href="#" class="result-item">
                    <img src="https://images.unsplash.com/photo-1569058242567-93de969c6fa5?w=120&h=120&auto=format&fit=crop" alt="巴蜀风味" class="result-img">
                    <div class="result-info">
                        <div class="result-name">巴蜀风味</div>
                        <div class="result-meta">
                            <span>评分 4.5</span>
                            <span>月售 1200+</span>
                            <span>45分钟</span>
                        </div>
                    </div>
                </a>
            </div>

            <div class="search-suggestions">
                <div class="suggestion-title">热门搜索</div>
                <div class="suggestion-tags">
                    <a href="#" class="suggestion-tag">麻辣烫</a>
                    <a href="#" class="suggestion-tag">炸鸡</a>
                    <a href="#" class="suggestion-tag">奶茶</a>
                    <a href="#" class="suggestion-tag">火锅</a>
                    <a href="#" class="suggestion-tag">米线</a>
                    <a href="#" class="suggestion-tag">汉堡</a>
                </div>
            </div>

            <!-- 无搜索结果时显示 -->
            <!--
            <div class="no-results">
                <i class="bi bi-search"></i>
                <p>没有找到相关商家</p>
            </div>
            -->
        </div>
    </div>
</body>
</html> 